/*
package start.kafka;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.kafka.test.context.EmbeddedKafka;
import org.springframework.stereotype.Component;

@Configuration
@Slf4j
public class Producer {

    @Autowired
    private KafkaTemplate<Object, Object> template;

    public void send(String topic, String input) {
        this.template.send(topic, input);
        log.info("生产者生产主题[{}]，内容[{}]的消息成功", topic, input);
    }



}
*/
